from flask_restful import reqparse,inputs
CreateSwipperInputs = reqparse.RequestParser()
CreateSwipperInputs.add_argument('img',type=str,help='请上传图片',required=True)
CreateSwipperInputs.add_argument('link',type=str,required=False,default='')
CreateSwipperInputs.add_argument('desc',type=str,required=False,default='')



UpdateSwipperInputs = reqparse.RequestParser()
UpdateSwipperInputs.add_argument('img',type=str,help='请上传图片',required=True)
UpdateSwipperInputs.add_argument('id',type=int,help='请选择项目',required=True)
UpdateSwipperInputs.add_argument('link',type=str,required=True)
UpdateSwipperInputs.add_argument('desc',type=str,required=True)



UpdataProduct = reqparse.RequestParser()
UpdataProduct.add_argument('img',type=str,help='请上传图片',required=True,location='json')
UpdataProduct.add_argument('id',type=int,help='请选择项目',required=True,location='json')
UpdataProduct.add_argument("desc",type=str,help='描述',required=True,location='json')
UpdataProduct.add_argument("name",type=str,help='名称',required=True,location='json')

CreateProduct = reqparse.RequestParser()
UpdataProduct.add_argument('img',type=str,help='请上传图片',required=True,location='json')
UpdataProduct.add_argument("desc",type=str,help='描述',required=True,location='json')
UpdataProduct.add_argument("name",type=str,help='名称',required=True,location='json')



UseCardInput = reqparse.RequestParser()
UseCardInput.add_argument("id",type=str,help='请输入卡号',required=True,location='json')

CreateTutorials  =reqparse.RequestParser()
UseCardInput.add_argument("video",type=str,help='请上传视频文件',required=True,location='json')
UseCardInput.add_argument("desc",type=str,help='请填写描述',required=True,location='json')


LOGIN_VALID = reqparse.RequestParser()
LOGIN_VALID.add_argument('username',type=str,help='请输入用户名',required=True)
LOGIN_VALID.add_argument('password',type=str,help='请输入密码',required=True)


CreateDesc = reqparse.RequestParser()
UseCardInput.add_argument("title",type=str,help='请填写标题',required=True,location='json')
UseCardInput.add_argument("desc",type=str,help='请填写描述',required=True,location='json')